<!DOCTYPE html>
<html lang="zh" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>发布文章</title>
    <link th:replace="clip/style::md">
    <link th:replace="clip/style::semantic">
</head>
<body>
<div class="ui container">
    <form th:action="@{|${ARTICLE}/post|}" method="post" class="ui form" >
        <input type="text" hidden th:value="${session.user.id}" name="author">
        <input type="text" hidden value="0" name="type">
        <div class="fields">
            <div class="required field">
                <input type="text" placeholder="标题" name="title">
            </div>
            <div class="required field">
                <input type="text" placeholder="简介" name="summary" >
            </div>
            <div class="required field">
                <div class="ui labeled input">
                    <label class="ui label">
                        <i class="image icon"></i>
                        https:
                    </label>
                    <input type="text" placeholder="封面" name="thumbnail">
                </div>
            </div>

        </div>
        <div class="ui container">
            <div class="required field" id="editor">
                <textarea name="content" style="display:none;"></textarea>
            </div>
        </div>
        <div class="ui container right aligned">
            <button class="ui button" onclick="window.history.go(-1);return false">返回</button>
            <input type="submit" value="提交" class="ui teal button" >
        </div>

    </form>
</div>
<script th:replace="clip/script::common"></script>
<script th:replace="clip/script::md('editor')"></script>
<script th:replace="clip/script::semantic" ></script>

</body>
</html>